/*
 * @(#) IUDADefinitions.java 2013-5-28 下午2:42:01
 *
 * Copyright 2013 Rockwell Automation, Inc. All rights reserved.
 * Rockwell Automation PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */package com.osi.mes.constants;

 /**
  * 所有对象UDA变量定义
  * UDA使用 UDA_<对象名称>_<UDA名称>
  * @author Nemo, 2013-3-29 下午12:14:24
  */
public interface IUDADefinitions
{
	String UDA_PART_ITEM_GROUP_NAME = "item_group";
	String UDA_PART_TYPE = "type";
	String UDA_PART_VALID_PERIOD = "valid_days";
	String UDA_PART_MIN_LEVEL = "min_level";
	String UDA_PART_MAX_LEVEL = "max_level";
	String UDA_PART_WEIGHT = "each_weight";
	String UDA_PART_SPEC = "spec";
	String UDA_PART_SAMMING_CYCLE = "samming_cycle";
	String UDA_PART_CLASS1 = "class1";
	String UDA_PART_CLASS2 = "class2";
	String UDA_PART_CLASS3 = "class3";
	String UDA_PART_CLASS4 = "class4";
	String UDA_PART_CLASS5 = "class5";
	String UDA_PART_MANAGE_BATCH = "manage_batch";
	String UDA_PART_AVG_PRICE = "avg_price";
	String UDA_PART_DOCENTRY = "docEntry";
	String UDA_PART_TRAY_QUANTITY = "tray_quantity";
	String UDA_PART_IS_OIL = "is_oil";
	String UDA_PART_IS_FREEZE = "is_freeze";
	String UDA_PART_IS_CO2 = "is_CO2";
	String UDA_PART_OVER_RATE = "over_rate";
	String UDA_PART_SUPPLIER = "supplier";
	
	public static final String UDA_BOM_PLANNED_EFFECTIVE_DATE = "planned_effective_date";	
	public static final String UDA_BOM_QUANTITY = "quantity";
	
	public static final String UDA_BOM_ITEM_LINE_NUM = "line_num";	
	
	public static final String UDA_EQUIPMENT_DEPARTMENT = "department";
	public static final String UDA_EQUIPMENT_TYPE = "type";
	public static final String UDA_EQUIPMENT_AREA = "area";
	public static final String UDA_EQUIPMENT_MODEL = "model";
	public static final String UDA_EQUIPMENT_PRODUCE_DATE = "produce_date";
	public static final String UDA_EQUIPMENT_PURCHASE_DATE = "purchase_date";
	public static final String UDA_EQUIPMENT_ENABLE_DATE = "enable_date";
	public static final String UDA_EQUIPMENT_SUPPLIER = "supplier";
	public static final String UDA_EQUIPMENT_YIELD_CAPACITY = "yield_capacity";
	public static final String UDA_EQUIPMENT_GROSS_WEIGHT = "gross_weight";
	public static final String UDA_EQUIPMENT_ELECTIC_POWER = "electric_power";
	public static final String UDA_EQUIPMENT_HYDRAULIC_LIQUID = "hydraulic_liquid";
	public static final String UDA_EQUIPMENT_DIMENSION = "dimension";
	public static final String UDA_EQUIPMENT_COUNTRY = "country";	
	
	//UDA FOR ORDER
	int UDA_ORDER_WORK_PLAN_CODE = 0;
	int UDA_ORDER_SEQUENCE = 1;
	int UDA_ORDER_TYPE = 2;
	int UDA_ORDER_START_STEP = 3;
	int UDT_ORDER_PUBLISH_DATE = 0;
	
	//UDA FOR CARRIER
	int UDA_CARRIER_LOCATION = 0;		//均温间坐标
	int UDA_CARRIER_LOT = 1;			//指定消耗批次号
	int UDA_CARRIER_ORDER_NUMBER = 2;	//工单号
	int UDA_CARRIER_QUANTITY = 3;		//修正值
	int UDA_CARRIER_LAST_MATERIAL = 4;	//最后一次消耗的物料
	
	//UDA FOR BOX
	int UDA_BOX_QUANTITY = 0;		//托盘箱数
	int UDA_BOX_LOT_NAME = 1;		//批次
	int UDA_BOX_ORDER_NUMBER = 2;	//工单号
	int UDT_BOX_CREATION_TIME = 0;	//创建时间
	
	//UDA FOR WORK CENTER
	int UDA_WORK_CENTER_LABEL_MATRIX_ADDR = 0;
	
	//UDA FOR ORDER ITEM
	int UDA_ORDER_ITEM_MAT_SPLIT_METHOD = 0;
	String UDA_BOM_ITEM_CONFIRM_TIME = "plan_time";
	int UDA_BOM_ITEM_ORDER_QUANTITY = 1;
	
	
	//UDA FOR LOT
	int UDA_LOT_IS_SCANNED = 0;				//是否扫描
	String LOT_SCANED = "1";
	String LOT_NOT_SCANED = "0";
	int UDA_LOT_SUPPLIER = 1;				//供应商
	int UDA_LOT_SUPPLIER_LOTNO = 2;			//供应商批次
	int UDA_LOT_ORDER_NUMBER = 3;			//工单号
	int UDA_LOT_BEFORE_MICROWAVE_TEMP = 4;	//微波解冻前温度	|| 内包机名称(内包装) || 理论重量(添加剂)
	int UDA_LOT_AFTER_MICROWAVE_TEMP = 5;	//微波解冻后温度	
	int UDA_LOT_MEGRE_CODE = 6;				//消耗的托盘条码	
	int UDA_LOT_RELATED_LOT = 7;			//指定消耗的批次
	int UDA_LOT_MATERIAL_GROUP = 8;			//物料组
	int UDA_LOT_MATERIAL_TYPE = 9;			//物料类型
	int UDT_LOT_SCAN_TIME = 0;				//扫描时间
	
	int UDT_LOT_OUT_TIME = 1;				//出厂时间
	String UDA_LOT_SAP_LOT = "sap_lot";		//SAP批次
	String UDA_LOT_IS_STANDARD = "is_standard";	//是否为标准批
	String UDA_LOT_STANDARD_WEIGHT = "standard_weight";	//批重量
}
